package com.micro.modual.entity;

import javax.persistence.Id;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * <h1>行政区划表 micro_region</h1>
 *
 * @author levelcoder
 * @date 2020-08-04 00:11:10
 */
@ApiModel(description = "行政区划")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "micro_region")
public class Region implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @ApiModelProperty(value = "主键编号")
    private Long id;


    /**
     * 行政区划代码
     */
    @ApiModelProperty(value = "行政区划代码")
    private String regionCode;


    /**
     * 父级id
     */
    @ApiModelProperty(value = "父级id")
    private String parentCode;


    /**
     * 地区名称
     */
    @ApiModelProperty(value = "地区名称")
    private String regionName;


    /**
     * 层级
     */
    @ApiModelProperty(value = "层级")
    private Integer regionLevel;


    /**
     * 排序号,1:省级,2:地市,3:区县
     */
    @ApiModelProperty(value = "排序号,1:省级,2:地市,3:区县")
    private Integer regionSort;


    /**
     * 显示,1:显示,0:隐藏
     */
    @ApiModelProperty(value = "显示,1:显示,0:隐藏")
    private Byte regionStatus;


    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String regionRemark;


    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;


    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

}
